<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace backend\assets;
use yii\web\AssetBundle;
/**
 * Description of CrudAsset
 *
 * @author zhuo bing
 */
class CrudAsset extends AssetBundle{

    public $basePath = '@webroot';
    public $baseUrl = '@web';
    public $css = [
        'public/css/ajaxcrud.css',
    ];
    public $depends = [
        'yii\web\YiiAsset',
        'yii\bootstrap\BootstrapAsset',
        'yii\bootstrap\BootstrapPluginAsset',
        'kartik\grid\GridViewAsset',
    ];

    public function init() {
        // In dev mode use non-minified javascripts
        $this->js = YII_DEBUG ? [
            'public/js/ModalRemote.js',
            'public/js/ajaxcrud.js',
                ] : [
            'public/js/ModalRemote.js', //这里如果换成js/ModalRemote.min.js  要注意ModalRemote.js 是否修改过
            'public/js/ajaxcrud.js',
        ];

        parent::init();
    }

}
